package restaurant;

/**
 * The Command object to get the offers.
 * 
 * @author Ebonie
 */

public class cmdGetOffers implements Command
{

	/** The info. */
	private InformationAggregator info;



	/**
	 * Instantiates a new cmd get offers.
	 *
	 * @param info the info
	 */
	public cmdGetOffers(InformationAggregator info) {
		this.info = info;
	}



	/**
	 * Execute.
	 *
	 * @return the object
	 * @see restaurant.Command#execute()
	 */
	@Override
	public Object execute()
	{
		SpecialOffers offers = info.getOffers();
		return offers.getOffers();
	}

}
